QT       += core gui multimedia multimediawidgets network sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

RC_ICONS = logoicon.ico

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    AbstractLayer/AvatarLib/avatarlib.cpp \
    AbstractLayer/Database/chatbuf.cpp \
    AbstractLayer/Database/chathistroy.cpp \
    AbstractLayer/Database/contactlib.cpp \
    AbstractLayer/Database/databaseclass.cpp \
    AbstractLayer/Database/friendapplylib.cpp \
    AbstractLayer/Database/friendlistlib.cpp \
    AbstractLayer/Encipher/encipher.cpp \
    AbstractLayer/FileTransmisson/filelocalclass.cpp \
    AbstractLayer/FileTransmisson/recvfileclass.cpp \
    AbstractLayer/FileTransmisson/sendfileclass.cpp \
    AbstractLayer/FileTransmisson/sendqueue.cpp \
    AbstractLayer/MsgHandler/customhandler.cpp \
    AbstractLayer/MsgHandler/jshandler.cpp \
    AbstractLayer/MsgHandler/myjson.cpp \
    AbstractLayer/Network/messageclass.cpp \
    AbstractLayer/Network/threadmanger.cpp \
    AbstractLayer/Settings/settingparser.cpp \
    UserLayer/External/pagemanger.cpp \
    UserLayer/GUI/AddfriendWidget/addfriendbox.cpp \
    UserLayer/GUI/AddfriendWidget/addfriendwidget.cpp \
    UserLayer/GUI/CameraWidget/camera.cpp \
    UserLayer/GUI/CameraWidget/camerawidget.cpp \
    UserLayer/GUI/ChatWidget/chatwidget.cpp \
    UserLayer/GUI/ChatWidget/friendlistbox.cpp \
    UserLayer/GUI/ChatWidget/recvbox.cpp \
    UserLayer/GUI/ChatWidget/recvfilebox.cpp \
    UserLayer/GUI/ChatWidget/sendbox.cpp \
    UserLayer/GUI/ChatWidget/sendfilebox.cpp \
    UserLayer/GUI/ContactWidget/contactbox.cpp \
    UserLayer/GUI/ContactWidget/contactwidget.cpp \
    UserLayer/GUI/ContactWidget/newfriendapplybtn.cpp \
    UserLayer/GUI/FriendApplyWidget/friendapplybox.cpp \
    UserLayer/GUI/FriendApplyWidget/friendapplywidget.cpp \
    UserLayer/GUI/Login/loginwidget.cpp \
    UserLayer/GUI/MainWidget/mainwidget.cpp \
    UserLayer/GUI/MyFavoritesWidget/favoritebox.cpp \
    UserLayer/GUI/MyFavoritesWidget/favoritelib.cpp \
    UserLayer/GUI/MyFavoritesWidget/myfavorites.cpp \
    UserLayer/GUI/SendFileWidget/sendfilewidget.cpp \
    UserLayer/GUI/SettingsWidget/aboutarea.cpp \
    UserLayer/GUI/SettingsWidget/accountarea.cpp \
    UserLayer/GUI/SettingsWidget/currencyarea.cpp \
    UserLayer/GUI/SettingsWidget/filearea.cpp \
    UserLayer/GUI/SettingsWidget/messagearea.cpp \
    UserLayer/GUI/SettingsWidget/settingspagemanger.cpp \
    UserLayer/GUI/SettingsWidget/settingswidget.cpp \
    UserLayer/GUI/SignupWidget/signupwidget.cpp \
    main.cpp

HEADERS += \
    AbstractLayer/AvatarLib/avatarlib.h \
    AbstractLayer/Camera/abstractcamera.h \
    AbstractLayer/Database/chatbuf.h \
    AbstractLayer/Database/chathistroy.h \
    AbstractLayer/Database/contactlib.h \
    AbstractLayer/Database/databaseclass.h \
    AbstractLayer/Database/friendapplylib.h \
    AbstractLayer/Database/friendlistlib.h \
    AbstractLayer/Encipher/encipher.h \
    AbstractLayer/FileTransmisson/filelocalclass.h \
    AbstractLayer/FileTransmisson/recvfileclass.h \
    AbstractLayer/FileTransmisson/sendfileclass.h \
    AbstractLayer/FileTransmisson/sendqueue.h \
    AbstractLayer/MsgHandler/customhandler.h \
    AbstractLayer/MsgHandler/jshandler.h \
    AbstractLayer/MsgHandler/myjson.h \
    AbstractLayer/Network/messageclass.h \
    AbstractLayer/Network/threadmanger.h \
    AbstractLayer/Settings/settingparser.h \
    UserLayer/External/enumlib.h \
    UserLayer/External/pagemanger.h \
    UserLayer/GUI/AddfriendWidget/addfriendbox.h \
    UserLayer/GUI/AddfriendWidget/addfriendwidget.h \
    UserLayer/GUI/CameraWidget/camera.h \
    UserLayer/GUI/CameraWidget/camerawidget.h \
    UserLayer/GUI/ChatWidget/box.h \
    UserLayer/GUI/ChatWidget/chatwidget.h \
    UserLayer/GUI/ChatWidget/filebox.h \
    UserLayer/GUI/ChatWidget/friendlistbox.h \
    UserLayer/GUI/ChatWidget/recvbox.h \
    UserLayer/GUI/ChatWidget/recvfilebox.h \
    UserLayer/GUI/ChatWidget/sendbox.h \
    UserLayer/GUI/ChatWidget/sendfilebox.h \
    UserLayer/GUI/ContactWidget/contactbox.h \
    UserLayer/GUI/ContactWidget/contactwidget.h \
    UserLayer/GUI/ContactWidget/newfriendapplybtn.h \
    UserLayer/GUI/FriendApplyWidget/friendapplybox.h \
    UserLayer/GUI/FriendApplyWidget/friendapplywidget.h \
    UserLayer/GUI/Login/loginwidget.h \
    UserLayer/GUI/MainWidget/mainwidget.h \
    UserLayer/GUI/MyFavoritesWidget/favoritebox.h \
    UserLayer/GUI/MyFavoritesWidget/favoritelib.h \
    UserLayer/GUI/MyFavoritesWidget/myfavorites.h \
    UserLayer/GUI/SendFileWidget/sendfilewidget.h \
    UserLayer/GUI/SettingsWidget/aboutarea.h \
    UserLayer/GUI/SettingsWidget/accountarea.h \
    UserLayer/GUI/SettingsWidget/currencyarea.h \
    UserLayer/GUI/SettingsWidget/filearea.h \
    UserLayer/GUI/SettingsWidget/messagearea.h \
    UserLayer/GUI/SettingsWidget/settingspagemanger.h \
    UserLayer/GUI/SettingsWidget/settingswidget.h \
    UserLayer/GUI/SignupWidget/signupwidget.h

FORMS += \
    UserLayer/GUI/AddfriendWidget/addfriendbox.ui \
    UserLayer/GUI/AddfriendWidget/addfriendwidget.ui \
    UserLayer/GUI/CameraWidget/camerawidget.ui \
    UserLayer/GUI/ChatWidget/chatwidget.ui \
    UserLayer/GUI/ChatWidget/friendlistbox.ui \
    UserLayer/GUI/ChatWidget/recvbox.ui \
    UserLayer/GUI/ChatWidget/recvfilebox.ui \
    UserLayer/GUI/ChatWidget/sendbox.ui \
    UserLayer/GUI/ChatWidget/sendfilebox.ui \
    UserLayer/GUI/ContactWidget/contactbox.ui \
    UserLayer/GUI/ContactWidget/contactwidget.ui \
    UserLayer/GUI/ContactWidget/newfriendapplybtn.ui \
    UserLayer/GUI/FriendApplyWidget/friendapplybox.ui \
    UserLayer/GUI/FriendApplyWidget/friendapplywidget.ui \
    UserLayer/GUI/Login/loginwidget.ui \
    UserLayer/GUI/MainWidget/mainwidget.ui \
    UserLayer/GUI/MyFavoritesWidget/favoritebox.ui \
    UserLayer/GUI/MyFavoritesWidget/myfavorites.ui \
    UserLayer/GUI/SendFileWidget/sendfilewidget.ui \
    UserLayer/GUI/SettingsWidget/aboutarea.ui \
    UserLayer/GUI/SettingsWidget/accountarea.ui \
    UserLayer/GUI/SettingsWidget/currencyarea.ui \
    UserLayer/GUI/SettingsWidget/filearea.ui \
    UserLayer/GUI/SettingsWidget/messagearea.ui \
    UserLayer/GUI/SettingsWidget/settingswidget.ui \
    UserLayer/GUI/SignupWidget/signupwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    scr.qrc

DISTFILES +=

win32: LIBS += -L$$PWD/lib/ -llibcrypto-1_1-x64 -llibssl-1_1-x64
INCLUDEPATH += $$PWD/openssl/include


